using BangleAbp.Products;
using BangleAbp.Products.Dtos;
using AutoMapper;

namespace BangleAbp
{
    public class BangleAbpApplicationAutoMapperProfile : Profile
    {
        public BangleAbpApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */

            CreateMap<ProductType, ProductTypeDto>();
            CreateMap<CreateUpdateProductTypeDto, ProductType>(MemberList.Source);
            CreateMap<Product, ProductDto>();
            CreateMap<CreateUpdateProductDto, Product>(MemberList.Source);
        }
    }
}
